home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 9
/
The PC-SIG Library on CD ROM - Ninth Edition.iso
/
801_900
/
DISK0893
/
DISK0893.ZIP
/
LISTER.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-09-24
|
626b
|
29 lines
100 ' list asm
102 CLS:PRINT "Printer Not Ready"
105 LPRINT CHR$(27);CHR$(66);CHR$(2);:WIDTH "LPT1:",130
110 CLS:INPUT "File Name";I$
120 OPEN I$ FOR INPUT AS #1
125 LIN=0
126 ON ERROR GOTO 400
129 '
130 LINE INPUT #1,I$
135 IF MID$(I$,1,4)=";off" THEN GOSUB 300
140 IF MID$(I$,1,5)=";page" THEN LPRINT CHR$(12);:GOSUB 200
150 LPRINT TAB(12);I$
155 LIN=LIN+1
160 GOTO 130
198 '
199 '
200 LINE INPUT #1,I$:IF I$=""THEN 200
205 IF I$<>";off" THEN RETURN
206 GOSUB 300
210 RETURN
298 '
299 '
300 LINE INPUT #1,I$:IF MID$(I$,1,3)<>";on" THEN 300
301 LINE INPUT #1,I$
310 RETURN
398 '
399 '
400 SYSTEM